<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: DMLYS
  Date: 2019/8/3
  Time: 15:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<center> 员工列表</center>
<pre>    private Integer id;
    private String lastName;
    private String email;
    private String gender;
    private Department department;</pre>
<table>
    <thead>
    <tr>
        <th>id</th>
        <th>email</th>
        <th>lastName</th>
        <th>gender</th>
        <th>部门</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${emps}" var="emp">
        <tr>
            <td>${emp.id}</td>
            <td>${emp.email}</td>
            <td>${emp.lastName}</td>
            <td>${emp.gender}</td>
            <td>${emp.department.lastName}</td>
        </tr>
    </c:forEach>
    </tbody>
</table>

</body>
</html>
